<template>
    <div class="history">
       <Header></Header>
        <img src="../assets/img/toindex.png" alt="" class="toIndex" @click="toindex">
      <div class="main">
        <div class="main-title">
          <img src="../assets/img/arrow.png" alt="">
          <span>历史记录</span>
        </div>
        <div class="main-choose">
          <span class="choose">筛选条件</span>
          <span class="chooseTime">时间筛选</span>

          <el-date-picker
            v-model="value3"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
<!--          <img src="../assets/img/triangle.png" alt="" >-->
          <button>确认</button>
        </div>
        <el-table
          :data="tableData"
          style="width: 100%"
          :header-cell-style="{background:'#03648a',color:'#24C2FF'}"
          :row-class-name="tableRowClassName"
        >
          <el-table-column prop="people" label="人员" width="520"></el-table-column>
          <el-table-column prop="operation" label="操作" width="520"   column-key="date"
                           :filters="[{text: '查询', value: '查询'},{text: '审批', value: '审批'}]"
                          ></el-table-column>
          <el-table-column prop="content" label="内容" width="520"></el-table-column>
          <el-table-column prop="time" label="时间"></el-table-column>
        </el-table>
      </div>
      <div class="paging">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="currentPage4"
          :page-sizes="[100, 200, 300, 400]"
          :page-size="100"
          layout="total, sizes, prev, pager, next, jumper"
          :total="400">
        </el-pagination>
      </div>
    </div>
</template>

<script>
  import Header from '../components/header'
    export default {
      name: "history",
      components:{
        Header
      },
      data(){
        return{
          value3:'',
          tableData:[
            {
              people:'姜俊杰',
              operation:'查询',
              content:'张三《个人信息》',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              operation:'审批',
              content:'张三《个人信息》',
              time:'2021/05/31 10:13',
            },
          ],
          value1: '',
        }
      },
      methods:{
        handleSizeChange(val) {
          console.log(`每页 ${val} 条`);
        },
        handleCurrentChange(val) {
          console.log(`当前页: ${val}`);
        },
        tableRowClassName({ rowIndex}) {
          if (rowIndex%2 === 1) {
            return 'warning-row';
          } else if (rowIndex%2 === 0) {
            return 'success-row';
          }
          return '';
        },
        toindex(){
          this.$router.push({
            name:'Index'
          })
        },
      },

    }
</script>

<style lang="less" scoped >
  .history{
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("../assets/img/bg.png");
    display: flex;
    flex-direction: column;
    align-items: center;
   .toIndex{
      align-self: flex-start;
      position: absolute;
      top: 40%;
    }
    .main{
      margin-top: 70px;
      width: 1800px;
      height: 700px;
      background: linear-gradient(180deg,rgba(36,194,255,0.20), rgba(36,194,255,0.00) 93%);
      border: 2px solid #24c2ff;
      padding-right: 20px;
      padding-left: 20px;
      padding-bottom: 30px;
      .main-title{
        margin-top: 20px;
        span{
          width: 64px;
          height: 22px;
          font-size: 16px;
          font-weight: 800;
          color: #24c2ff;
          margin-left: 10px;
        }
      }
      .main-choose{
        margin-top: 60px;
        margin-bottom: 20px;
        .choose{
          width: 64px;
          height: 22px;
          font-size: 16px;
          font-weight: 800;
          color: #24c2ff;
        }
        .chooseTime{
          margin-right: 20px;
          margin-left: 50px;
          width: 56px;
          height: 20px;
          font-size: 14px;
          font-weight: 500;
          color: #24c2ff;
        }
        button{
          width: 70px;
          height: 32px;
          background:  #01c4f7;
          outline: none;
          border: none;
          margin-left: 12px;
          color: white;
        }

        /deep/.el-date-editor--daterange.el-input,
        /deep/.el-date-editor--daterange.el-input__inner,
        /deep/.el-date-editor--timerange.el-input,
        /deep/.el-date-editor--timerange.el-input__inner{
          width: 275px;
          height: 34px;
        }
        /deep/.el-date-editor .el-range-separator{
          line-height: 26px;
          color: #01c4f7;
        }
        /deep/.el-date-editor .el-range__icon{
          font-size: 22px;
          line-height: 27px;
          color: #01c4f7;
        }
        /deep/.el-date-editor .el-range-input{
          width: 40%;
          color: #01c4f7;
          background: #144763;
        }
        /deep/.el-range-editor.el-input__inner{
          background: #144763;
          outline: none;
          border: none;
          border-radius: 0px;
        }
        /deep/.el-date-editor .el-range__close-icon{
          display: none;
        }

        /deep/ .el-date-editor .el-range-input::-webkit-input-placeholder {
          color: #01c4f7;
        }
        /deep/.el-date-editor .el-range-input::-ms-input-placeholder {
          color: #01c4f7;
        }




      }







      /deep/.el-table .warning-row {
        background: #12364f;
        color: #24C2FF;
      }
      /deep/.el-table .success-row {
        background: #144763;
        color: #24C2FF;
      }
      /deep/ .el-range-editor.el-input__inner{
        padding-left: 20px;
        padding-right: 0;
      }

      /deep/  .el-table td,/deep/ .el-table th.is-leaf{
        border-bottom:none
      }
      /deep/ .el-table--border::after, .el-table--group::after, .el-table::before{
        z-index: -1
      }

      /deep/.el-table .cell,/deep/ .el-table--border td:first-child .cell,/deep/ .el-table--border th:first-child .cell{
        padding-left: 30px;
      }



      /deep/.el-table--enable-row-hover .el-table__body tr:hover>td {
        background-color:  #0e283b !important;
        color: #01c4f7;
      }

      /deep/.el-table__header tr, /deep/.el-table__header th {
        padding: 0;
        height: 45px;
      }

      /deep/ .el-dialog__header {
        padding: 0;
        background:  #101a2a;
      }
      /deep/  .el-dialog__body{
        background:  #101a2a;
      }


    }
    .paging{
      margin-top: 14px;
      margin-right: 54px;
      align-self: flex-end;
     /deep/ .el-pagination.is-background .btn-next, /deep/ .el-pagination.is-background .btn-prev, /deep/ .el-pagination.is-background .el-pager li{
       width: 32px;
       height: 32px;
       background: rgba(1,196,247,0.20);
       color: #24C2FF;
       border-radius: 5px;
       box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.10);
      }

     /deep/ .el-input--suffix .el-input__inner{
       outline: none;
       border: none;
       background: rgba(1,196,247,0.20);
       color: #24C2FF;
      }

     /deep/  .el-pager li ,/deep/.el-pagination .btn-next, .el-pagination .btn-prev,/deep/.el-pagination .btn-prev {
       background: rgba(1,196,247,0.20);
       color: #24C2FF;
     }
      /deep/ .el-pagination__editor.el-input .el-input__inner{
        background: rgba(1,196,247,0.20);
        color: #24C2FF;
        outline: none;
        border: none;
      }
      /deep/ .el-pagination__total{
        color: #24C2FF;
      }

      /deep/ .el-pagination__jump{
        color: #24C2FF;
      }

    }
  }

</style>
